package com.hlz.gourdmall.util;

import java.util.UUID;

/**
 * @author: Hxh
 * @date: 2019/12/14
 * @description:
 */
public class UUIDUtils {
    /**
     * 随机生成id
     * @return
     */
    public static String getId() {
        return UUID.randomUUID().toString().replace("-", "").toUpperCase();
    }

    public static String getUUID64() {
        return getId() + getId();
    }

    /**
     * 生成随机码
     * @return
     */
    public static String getCode() {
        return getId();
    }
}
